import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path: '/',
        component:()=>import('../components/HomePage.vue'),
        children:[
            {
                path: '/',
                name: 'home',
                component: ()=>import('../pages/home.vue'),
            }
        ]
    },
    {
        path: '/statistic',
        name: 'statistic',
        component:()=>import('../pages/Statistic.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router